package com.xiaow.android.ebook.app.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBConnection extends SQLiteOpenHelper {

	public DBConnection(Context context) {
		super(context, DBConstant.DB_NAME, null, 3);
	}

	public void onCreate(SQLiteDatabase db) {

		if (DBConstant.SQLS == null) {
			return;
		}

		for (String sql : DBConstant.SQLS)
			db.execSQL(sql);
	}

	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
